﻿@model List<Tuple<string, IEnumerable<DotaHelp.Controllers.StatisticsController.ListRowVM>>>

@{
    ViewBag.Title = "Статистика";
    ViewBag.Meta_description = "Статистика на сайте DotaHelp.ru";
    ViewBag.Meta_keywords = "DotaHelp, гайды, сборки, закупы, dota, герои, доты, Статистика";

}

<h2>Статистика</h2>
<ul class="submenu" >
   <li class="main">@Html.ActionLink("Топ5", "List")</li>
   <li>@Html.ActionLink("Гайды", "List", new { section = "Guides" })</li>
   <li>@Html.ActionLink("Закупы", "List", new { section = "Purchases" })</li>
   <li>@Html.ActionLink("Пики/баны", "List", new { section = "Comands" })</li>
   <li>@Html.ActionLink("Предметы", "List", new { section = "Items" })</li>
   <li>@Html.ActionLink("Герои", "List", new { section = "Heroes" })</li>
   <li>@Html.ActionLink("Авторы гайдов", "List", new { section = "authorGaids" })</li>
   <li>@Html.ActionLink("Авторы закупов", "List", new { section = "authorPur" })</li>
   <li>@Html.ActionLink("Авторы команд", "List", new { section = "authorCmd" })</li>
   <li>@Html.ActionLink("Авторы словаря", "List", new { section = "authorDic" })</li>
</ul>

  
@foreach (var group in Model)
{
    <h2>@group.Item1 (шт):</h2>
    <table width="80%" border="0">
        @foreach (var row in group.Item2)
        {
            <tr>
                <td width="5%">@row.Link(Html)</td>
                <td><div style='background-color:#ffd700; width:@(row.Percent)%'>@row.Count</div></td>                
            </tr>
        }
    </table>
}

@Html.Comments("Статистика", Url.Action("List", "Statistics")) 